package cn.tedu.coolshark.mapper;

import cn.tedu.coolshark.pojo.entity.Product;
import cn.tedu.coolshark.pojo.vo.ProductIndexVO;
import cn.tedu.coolshark.pojo.vo.ProductTopVO;

import java.util.List;

public interface ProductMapper {
    List<Product> selectAll();

    int delete(Integer id);

    int insert(Product product);

    Integer selectMaxId();

    Product selectById(Integer id);

    int update(Product product);

    List<ProductTopVO> selectIndex();

    List<ProductIndexVO> selectByCId(Integer id);

    List<ProductIndexVO> selectIndexVO();

    int updateViewById(Integer id);

    List<ProductIndexVO> selectByWd(String wd);
}
